# python3.9 以前
from typing import List, Tuple, Set, Dict


def process_items(items: List[str]):
    for item in items:
        # print(item.upper())
        print(item)


def process_items3(prices: Dict[str, float]):
    for item_name, item_price in prices.items():
        print(item_name)
        print(item_price)


def process_items2(items_t: Tuple[int, int, str], items_s: Set[bytes]):
    return items_t, items_s


def str_test(one: str, two: str):
    return one.upper() + " " + two.upper()


class Person:
    def __init__(self, name: str):
        self.name = name


def get_person_name(one_person: Person):
    return one_person.name


print(str_test("aaa", 'bbb'))

process_items(["a", "2", "d"])

print(process_items2((1, 2, "abc"), set("abc")))

process_items3({"aa": 12.3, "bb": 34.8})

print(get_person_name(Person("Allen")))
